import * as config from '../util/config';
import axios from 'axios';

// 改变active
export function get_team_users(obj) {
    return axios.post(config.localhostUrl + `team_users`, obj);
}

// 改变active
export function get_users(obj) {
    return axios.post(config.localhostUrl + `users`, obj);
}

export function change_company(id, company) {
    return axios.post(config.localhostUrl + 'user', { id, company });
}

export function change_dept(id, dept) {
    return axios.post(config.localhostUrl + 'user', { id, dept });
}